projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bfa0f8
)
Remove broken approach to get stable sort of CSS rules
author
Alexander Larsson
<alexl@redhat.com>
Thu, 15 Mar 2012 15:22:04 +0000
(16:22 +0100)
committer
Alexander Larsson
<alexl@redhat.com>
Thu, 15 Mar 2012 20:12:32 +0000
(21:12 +0100)
The pointer comparisons in the sort compare function just doesn't
work.
We still need a stable sort, but the plan is to add a real
one in glib.
gtk/gtkcssprovider.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcssprovider.c
b/gtk/gtkcssprovider.c
index 100155058b700b131fb276ea0fd3e09a708f1e69..77c75a64e6afdd44cf62a1b27fcefc607bed36b6 100644
(file)
--- a/
gtk/gtkcssprovider.c
+++ b/
gtk/gtkcssprovider.c
@@
-2351,13
+2351,6
@@
gtk_css_provider_compare_rule (gconstpointer a_,
if (compare != 0)
return compare;
- /* compare pointers in array to ensure a stable sort */
- if (a_ < b_)
- return -1;
-
- if (a_ > b_)
- return 1;
-
return 0;
}